﻿using System;
using System.Linq;
using Trentacular.SharePoint.StsAdmin.Util;

namespace Trentacular.SharePoint.StsAdmin
{
    public class InvalidParameterCombinationException : Exception
    {
        public InvalidParameterCombinationException(params Parameter[] parameters)
            : base(string.Format(
                "The parameters {0} cannot be used in combination",
                StringUtils.Delimit(parameters.Select(p => p.Name), " and ")
                )
            ) { }
    }
}
